﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace referenceFSharplib
{
    class Program
    {
        static void Main(string[] args)
        {
            Int32[] arr = { 2, 123, 345, 123, 678, 456, 342, 777, 1123, 34, 9, 3 };
            printArr(arr);
            MaxHeap.MaxHeap heap = new MaxHeap.MaxHeap(arr, arr.Length - 1);
            heap.Sort();
            printArr(arr);
        }
        static void printArr(int[] arr)
        {
            foreach (var item in arr)
            {
                Console.Write(item);
                Console.Write(',');
            }
            Console.WriteLine();
            long i = 1000 * 1000 * 1000;
            while (i-- >= 0)
            {

            }
        }
    }
}
